﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BankSystemWithCSharp
{
    public class DataBaseException : Exception
    {
        public DataBaseExceptionType DBExceptionType { get; set; }
        public DataBaseException(DataBaseExceptionType DBExceptionType, string msg, Exception innerException)
    : base(msg, innerException)
        {
            this.DBExceptionType = DBExceptionType;
        }
        public DataBaseException(DataBaseExceptionType DBExceptionType, string msg)
            : this(DBExceptionType, msg, null)
        {
        }
    }
}